from django.db import models

# Create your models here.
class Message(models.Model):
	username = models.CharField(max_length=255)
	email 	 = models.EmailField()
	telephone = models.CharField(max_length=50)
	public   = models.BooleanField() 
	title    = models.CharField(max_length=255)
	content  = models.CharField(max_length=2000)
	datetime = models.DateField()
	companyid = models.CharField(max_length=255)
	ip	 = models.CharField(max_length=255)

        def __unicode__(self):
    	    return self.username

        class Admin:
	    pass

from django.db import models
from django.contrib.auth.models import User
     
class UserProfile(models.Model):
    url = models.URLField()
    home_address = models.TextField()
    user = models.ForeignKey(User, unique=True)

